package org.dtrd.modules.record.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.dtrd.modules.record.entity.bean.AvgRecordBean;
import org.dtrd.modules.record.entity.po.DtrdEntRdSigninWaistline;

public interface DtrdEntRdWaistlineMapper extends BaseMapper<DtrdEntRdSigninWaistline> {

    Integer getAvgWaist(@Param("patientId") Integer patientId, @Param("startDate") String startDate, @Param("endDate") String endDate);


    /**
     * 计算时间段内腰围平均值
     * @param patientId
     * @param startDate
     * @param endDate
     * @return
     */
    AvgRecordBean getAvgValue(@Param("patientId") Integer patientId, @Param("startDate") String startDate, @Param("endDate") String endDate);
}